import { post, postLoading, uploadFile,get,getnolog } from "./http"

// // export const ApitestUrl = 'http://xiongmao.xxzcloud.com'
export const ApitestUrl = 'http://tp6.io:8000'

// export const key = '3JSBZ-UDUCJ-JP4FG-FBPG7-K3XUO-25FQA'
// //文件上传
export const upload = ApitestUrl + '/api/ajax/upload'//上传

export const useUploadFile = (filePath: string) => uploadFile(upload, filePath)//上传文件

export const wxAuthorization = (p: any = {}) => post(ApitestUrl + '/api/login/wxAuthorization', p)//微信授权登录

export const posBrand = (p: any = {}) => post(ApitestUrl + '/api/index/posBrand', p)//获取机具品牌列表

export const bindingPos = (p: any = {}) => post(ApitestUrl + '/api/center/bindingPos', p)//绑定机具

//分红
export const redPacketPage = (p: any = {}) => post(ApitestUrl + '/api/prize/redPacketPage', p)//分红页面

export const clickPrize = (p: any = {}) => post(ApitestUrl + '/api/prize/clickPrize', p)//点击抽奖

export const prizeLog = (p: any = {}) => post(ApitestUrl + '/api/prize/prizeLog', p)//抽奖记录

//代理
export const agencyPage = (p: any = {}) => post(ApitestUrl + '/api/agency/agencyPage', p)//代理页面数据

export const buyAgency = (p: any = {}) => post(ApitestUrl + '/api/agency/buyAgency', p)//购买代理
//个人中心
export const centerindex = (p: any = {}) => post(ApitestUrl + '/api/center/index', p)//个人中心主页

export const withdrawPage = (p: any = {}) => post(ApitestUrl + '/api/center/withdrawPage', p)//提现页面

export const subWithdraw = (p: any = {}) => post(ApitestUrl + '/api/center/subWithdraw', p)//发起提现

export const withdrawLog = (p: any = {}) => post(ApitestUrl + '/api/center/withdrawLog', p)//提现记录

export const myPos = (p: any = {}) => post(ApitestUrl + '/api/center/myPos', p)//我的机具

export const getrefundPostage = (p: any = {}) => get(ApitestUrl + '/api/center/refundPostage', p)//邮费退还-get（验资）

export const postrefundPostage = (p: any = {}) => post(ApitestUrl + '/api/center/refundPostage', p)//邮费退还-get（退费）

export const myEarnings = (p: any = {}) => post(ApitestUrl + '/api/center/myEarnings', p)//我的收益

export const myOrder = (p: any = {}) => post(ApitestUrl + '/api/center/myOrder', p)//我的订单